Automattic\Jetpack\Identity_Crisis D

Total Complexity 168
Dependencies 13
Dependents 4
Total lines 1,488
Lines of code 732
Logical lines of code 314
Comment lines 596
Methods 58
Properties 4

Methods 58

Method Rating Maintainability Complexity Lines of code
validate_sync_error_idc_option()
A
51 15 25
get_mismatched_urls()
A
53 9 25
maybe_clear_migrate_option()
A
58 9 14
add_idc_query_args_to_url()
A
50 8 28
locate_wp_config()
A
57 8 17
set_ip_requester_for_idc()
S
51 7 28
get_sync_error_idc_option()
S
50 7 28
check_response_for_idc()
S
55 5 21
detect_possible_dynamic_site_url()
S
55 5 21
add_ip_requester_to_url_validation_response()
S
58 5 16
wordpress_init()
S
58 5 15
display_admin_bar_button()
S
50 4 28
display_non_admin_idc_notice()
S
54 4 25
normalize_url_protocol_agnostic()
S
59 4 14
check_http_response_for_idc_detected()
S
60 4 13
should_handle_idc()
S
61 4 11
reverse_wpcom_urls_for_idc()
S
63 4 11
check_identity_crisis()
S
67 4 7
add_secret_to_url_validation_response()
S
61 3 12
render_notice_second_step()
S
53 1 37
render_notice_first_step()
S
54 1 36
__construct()
S
54 2 19
url_is_ip()
S
67 3 7
non_admins_current_screen_check()
S
66 3 8
maybe_update_ip_requester()
S
69 3 6
clear_all_idc_options()
S
61 2 14
display_idc_notice()
S
61 2 14
render_error_notice()
S
60 1 22
render_notice_header()
S
59 1 18
has_identity_crisis()
S
78 2 3
register_request_body()
S
67 2 8
init()
S
71 2 6
admin_page_has_help_tabs()
S
65 2 9
do_jetpack_idc_disconnect()
S
65 2 10
update_ip_requester()
S
68 2 7
get_start_fresh_action_explanation()
S
60 1 13
get_migrate_site_action_explanation()
S
60 1 13
get_first_step_header_lead()
S
62 1 12
get_non_admin_notice_text()
S
63 1 11
get_confirm_safe_mode_action_explanation()
S
63 1 11
get_first_step_fix_connection_action_explanation()
S
63 1 11
jetpack_connection_disconnect_site_wpcom_filter()
S
79 1 3
get_safe_mod_doc_url()
S
80 1 3
site_registered()
S
79 1 3
prepare_url_for_display()
S
79 1 3
legacy_jetpack_sync_idc_optin_filter()
S
77 1 3
safe_mode_is_confirmed()
S
80 1 3
get_non_admin_contact_admin_text()
S
72 1 5
get_unsure_prompt()
S
64 1 10
get_start_fresh_button_text()
S
75 1 4
get_second_step_header_lead()
S
66 1 8
get_first_step_fix_connection_button_text()
S
75 1 4
get_confirm_safe_mode_button_text()
S
75 1 4
get_first_step_header_explanation()
S
64 1 10
enqueue_idc_notice_files()
S
76 1 4
enqueue_admin_bar_css()
S
80 1 3
sync_idc_optin()
S
75 1 4
get_migrate_site_button_text()
S
75 1 4